<template>
  <div>
    <el-form
      :label-position="labelPosition"
      label-width="120px"
      :model="fromData"
    >
      <template v-for="(item, index) in Object.keys(quotainvoice[quotainvoiceFlag])">
        <el-form-item :key="index" :label="quotainvoice[quotainvoiceFlag][item]">
          <el-input :value="fromData[item]" />
        </el-form-item>
      </template>
    </el-form>
  </div>
</template>

<script>
export default {
  props: {
    fromData: {
      type: Object,
      default: () => {}
    },
    quotainvoiceFlag: {
      type: Number,
      default: 0
    }

  },
  data() {
    return {
      labelPosition: 'right',
      quotainvoice: {
        1: { invoice_rate_lowercase: '发票金额小写',
          invoice_code: '发票代码',
          province: '省',
          city: '市',
          invoice_rate: '金额',
          location: '发票所在地',
          invoice_number: '发票号码' }
      }
    };
  }
};
</script>

<style lang="scss" scoped></style>
